export class express {
  id?: number;
  name = '';
                    code=''
                  name=''
                  partnerId=''
                  partnerKey=''
                  net=''
                  account=''
                  password=''
                  netName=''
                  sort=''
                  isShow=''
                  status=''
        constructor(data?: express) {
    data && this.setProps(data);
  }

  setProps(data: express) {
    (Object.keys(this) as Array<keyof Iexpress>).forEach((key) => {
      // @ts-ignore
      this[key] = data[key]
    })
  }
}

export type Iexpress = Omit<express, 'setProps'>